<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="/node_modules/jquery/dist/jquery.min.js"></script>
</head>
<body>
    <h1>英雄信息</h1>
    <h3 id="name">英雄名字</h3>
    <h3 id="gender">英雄性别</h3>
    <h3 id="time">创建时间</h3>
</body>
<script>
    let msg=localStorage.getItem("msg");
    console.log(msg);
    let arr=msg.split(",");
    console.log(arr)
    $("#name").text("英雄名字："+arr[0]);
    $("#gender").text("英雄性别："+arr[1]);
    $("#time").text("创建时间："+arr[2]);
</script>
</html>